package com.ruoyi.project.applet.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysUserWx;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IPayService {


    AjaxResult refund(String id,String money,String refundNumber);


    AjaxResult pay(SysUserWx sysUserWx) throws Exception;

    /**
     * v3支付
     */
    AjaxResult v3Pay(SysUserWx sysUserWx) throws Exception;

    /**
     * v3支付回调
     */
    String backPayOrder(HttpServletRequest request, HttpServletResponse response);


    /**
     * v3支付提现
     */
    AjaxResult takePay(String amount, String name, SysUserWx userWx) throws Exception;

    /**
     * v3支付提现
     */
    AjaxResult yunGouTakePay(String amount, String openId, SysUserWx userWx) throws Exception;

    /**
     * v3提现回调
     */
    String refundPayOrder(HttpServletRequest request, HttpServletResponse response);


}
